.el-popover.el-popper {
  min-width: 100px !important;
  padding: 0 !important;
}

// 导航菜单
.el-sub-menu {
  .el-sub-menu__title {
    font-weight: 700;
    font-size: 14px;
  }

  &.is-active {
    .el-sub-menu__title {
      color: $menu-color;
    }

    .svg-icon {
      position: relative;
      left: -80px;
      color: $menu-color;
      fill: currentColor;
      filter: drop-shadow($menu-color 80px 0);
    }
  }

  .menu-icon {
    margin-right: 16px;
  }
}

.el-menu {
  border-right: 0 !important;
}

.el-menu-item {
  position: relative;
  margin: 0 8px 0 12px;

  ::before {
    position: absolute;
    top: 15px;
    left: 10px;
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('/src/assets/icon_second_label.svg');
    background-size: cover;
  }

  span {
    color: $menu-color;
  }

  &.is-active {
    border-radius: 0;
    background: #575460 !important;

    ::before {
      background-image: url('/src/assets/icon_second_label_active.svg');
    }

    span {
      color: #fff !important;
    }
  }

  &:hover {
    background: #575460 !important;

    ::before {
      background-image: url('/src/assets/icon_second_label_active.svg');
    }

    span {
      color: #fff !important;
    }
  }

  &.no_children {
    padding-left: 8px !important;

    .svg-icon {
      margin-right: 16px !important;
    }

    ::before {
      display: none;
    }

    &.is-active {
      .svg-icon {
        position: relative;
        left: -80px;
        color: $menu-color;
        fill: currentColor;
        filter: drop-shadow(#FFF 80px 0);
      }
    }

    &:hover {
      background-color: transparent !important;
      color: #575460 !important;

      .title {
        color: #575460 !important;
      }

      .svg-icon {
        position: relative;
        left: -80px;
        color: #575460;
        fill: currentColor;
        filter: drop-shadow(#575460 80px 0);
      }
    }

    &.is-active:hover {
      background-color: #575460 !important;
      color: #fff !important;

      .title {
        color: #fff !important;
      }

      .svg-icon {
        position: relative;
        left: -80px;
        color: #fff;
        fill: currentColor;
        filter: drop-shadow(#fff 80px 0);
      }
    }

  }
}

.is-black {
  .el-menu-item {
    &.is-active {
      background-color: $base-color !important;
      border-right: 0;

      span {
        color: $white-color;
      }
    }

    &:hover {
      color: #575460 !important;
      background-color: $base-color !important;
    }
  }
}

.el-sub-menu__title:hover {
  background-color: transparent !important;
  color: #575460 !important;

  .title {
    color: #575460 !important;
  }

  .svg-icon {
    position: relative;
    left: -80px;
    color: #575460;
    fill: currentColor;
    filter: drop-shadow(#575460 80px 0);
  }
}

.el-menu--horizontal>.el-menu-item {
  &.is-active {
    border-right: none;
  }
}

.el-menu--horizontal {
  .el-menu-item {
    &.is-active {
      background-color: $base-color !important;
      border-right: 0;

      span {
        color: #575460 !important;
      }
    }

    &:hover {
      color: #575460 !important;
      background-color: $base-color !important;
    }
  }

  .el-sub-menu__title {
    color: $base-color-3 !important;
  }
}

.el-menu--horizontal.is-black {
  .el-sub-menu__title {
    color: $white-color !important;
  }
}

.el-sub-menu.is-black {
  .el-sub-menu__title {
    color: $white-color !important;
  }
}



.el-menu--horizontal .el-menu .el-menu-item,
.el-menu--horizontal .el-menu .el-sub-menu__title {
  height: $sub-menu__title-height !important;
  line-height: $sub-menu__title-height !important;
  color: #575460 !important;
}

.el-header {
  --el-header-padding: 0;
}

.el-menu--collapse .el-menu-item {
  text-align: center;
}

.el-menu--collapse .menu-icon {
  display: flex !important;
  justify-content: center;
  margin-right: 0;
}

.el-menu--collapse .el-sub-menu__title {
  padding-right: 20px;
  display: flex;
  justify-content: center;
}


// 表格
.el-table__header-wrapper {
  z-index: 1;
}

.el-table__body-wrapper {
  z-index: 1;
}

// 表格分页
.el-pagination {
  line-height: 32px !important;

  .el-pagination__sizes {
    position: relative;
    top: 4px;
  }

  .el-input {
    width: auto !important;
    height: 32px;
    line-height: 32px;
    border-radius: 0;

    .el-input__wrapper {
      position: relative;
      width: 68px;
      padding: 0 12px;
      background-color: #eeeff2;
      height: 32px;
      box-shadow: none;

      .el-input__inner {
        min-width: 66px;
        color: $base-color;
      }

      .el-input__suffix {
        .el-icon {
          margin-left: 4px;
          font-size: 12px;
          color: #6b6d70;
        }
      }

      &.is-focus {
        box-shadow: none !important;
      }
    }
  }

  .el-pagination__jump {
    .el-input__wrapper {
      width: 16px;
    }
  }

  .el-pager .is-active {
    font-size: 14px;
    background-color: $white-color !important;
    color: $base-color !important;
    border: 1px solid $base-color;
  }

  .btn-prev,
  .btn-next {
    color: #6b6d70 !important;
    background-color: $white-color !important;
  }
}

// 按钮
.el-button {
  color: $base-color !important;
  border-color: $base-color !important;
  border-radius: 2px !important;
  font-weight: 400;

  &:hover,
  &:active,
  &:focus {
    color: #535457 !important;
    border-color: #535457 !important;
    background-color: #eaeaea !important;
  }

  &.is-disabled {
    color: #fff !important;
    border-color: #d8d8d8 !important;

    &:hover,
    &:active,
    &:focus {
      color: #fff !important;
      border-color: #d8d8d8 !important;
    }
  }
}

.el-button--primary {
  color: $white-color !important;
  background-color: $base-color !important;
  outline: none;
  border: none;

  &:hover,
  &:active,
  &:focus {
    outline: none !important;
    color: $white-color !important;
    background-color: #535457 !important;
  }

  &.is-disabled {
    background-color: #d8d8d8 !important;

    &:hover,
    &:active,
    &:focus {
      background-color: #d8d8d8 !important;
    }
  }
}

.el-button--primary:active {
  background-color: $base-color !important;
  border-color: $base-color !important;
}

// 消息弹窗
.el-message-box {
  max-width: 350px !important;
  border-radius: 2px !important;
  padding-bottom: 32px !important;

  .el-message-box__header {
    padding: 16px 24px;
    box-shadow: 0px -1px 0px 0px #f0f0f0 inset;
  }

  .el-message-box__title {
    font-size: 14px;
    font-weight: 600;
  }

  .el-message-box__content {
    padding: 24px 40px;
  }

  .el-message-box__message {
    text-align: center;

    p {
      color: #010205;
      text-align: center;
      font-family: "PorscheNextRegular", "Arial Narrow", Arial, "Heiti SC", "SimHei", "sans-serif" !important;
      font-size: 14px;
      font-style: normal;
      font-weight: 300;
      line-height: 140%;
      /* 19.6px */
    }

    strong {
      color: #575460 ;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 140%;
    }
  }

  .el-message-box__btns {
    padding: 5px 40px 0px;

    .el-button {
      flex: 1;
    }

    .el-button--primary {
      background-color: #010205 !important;
    }
  }
}

// 对话框
.el-dialog {
  .el-dialog__header {
    margin-right: 0;
    box-shadow: 0px -1px 0px 0px #f0f0f0 inset;
  }

  .modal-header strong {
    font-size: 14px;
  }

  .el-dialog__body {
    padding: 24px;
  }

  .el-dialog__footer {
    padding-top: 0;
    padding-bottom: 32px;
  }
}

// tabs
.el-tabs {
  .el-tabs__item {
    padding-left: 0;
    padding-right: 32px;
    color: $menu-color;
    font-weight: normal;

    &:hover,
    &.is-active {
      color: $base-color;
      font-weight: 500;
    }

    &:last-child {
      padding-right: 0;
    }
  }

  .el-tabs__active-bar {
    background-color: $btn-hover-color;
  }
}

// 文本域
.el-textarea {
  &:focus {
    border-color: $base-color;
  }
}

// 下拉菜单
.el-dropdown {
  &:focus-visible {
    outline: none;
  }
}

// 输入框圆角
.el-input__wrapper {
  border-radius: 2px;
}

// 下拉框文本色
.el-select .el-input__inner {
  color: $base-color !important;
}

.el-radio__inner {
  width: 14px !important;
  height: 14px !important;
}

.el-radio__input.is-checked .el-radio__inner {
  border-color: #fff !important;
  background-color: #fff !important;
  background-image: url('/src/assets/icon/login_check_active.svg') !important;
  background-size: cover !important;
  border-width: 0 !important;

  &::after {
    display: none !important;
  }
}

.el-radio__input.is-checked+.el-radio__label {
  color: #010205 !important;
}

.el-radio__inner:hover {
  border-color: #010205 !important;
}


.el-checkbox__inner {
  width: 14px !important;
  height: 14px !important;
}

.el-checkbox__input.is-checked .checkbox__inner {
  border-color: #fff !important;
  background-color: #fff !important;
  background-image: url('/src/assets/icon/login_check_active.svg') !important;
  background-size: cover !important;
  border-width: 0 !important;

  &::after {
    display: none !important;
  }
}

.el-checkbox__input.is-checked+.el-checkbox__label {
  color: #010205 !important;
}

.el-checkbox__inner:hover {
  border-color: #010205 !important;
}




// 输入框和下拉框阴影
.el-select .el-input__wrapper.is-focus,
.el-select .el-input.is-focus .el-input__wrapper,
.el-input__wrapper.is-focus,
.el-textarea__inner:focus {
  box-shadow: 0 0 0 1px #575460  inset !important;
}

.el-select-dropdown__item {

  &.selected,
  &.hover {
    background-color: #F7F8FA !important;
  }

  &.selected {
    color: #575460 ;
  }
}

.el-select {
  &:focus {
    border-color: #575460  !important;
  }
}

.el-select-dropdown.is-multiple .el-select-dropdown__item {

  &.selected,
  &.hover {
    background-color: #F7F8FA !important;
  }

  &.selected {
    color: #575460 ;

    &::after {
      background-color: #575460 ;
    }
  }
}


// 输入框后缀
.el-input__suffix {
  .el-input__count-inner {
    color: #6b6d70;
  }
}

// 表单
.el-form-item__content>span {
  color: $base-color;
}


.el-table.is-scrolling-none th.el-table-fixed-column--right {
  background-color: #eeeff2 !important;
}

.el-dialog__close {
  svg {
    color: rgb(144, 147, 153);
  }
}

.el-upload {
  border-style: dashed !important;
}